package com.fce.boc.exception;

public enum ErrorCodeAndMsg {

    //token 异常
    UnsupportedJwtException("9003","Token格式错误"),
    MalformedJwtException("9004","Token没有被正确构造"),
    SignatureException("9005","token签名失败"),
    IllegalArgumentException("9006","非法参数异常"),
    ExpiredJwtException("9007","token异常"),
    UsernameNotFoundORPASSWORDERRORException("9008","用户名或者密码错误"),
    TOKEN_VALID_ERROR("9001","token校验异常,请重新登录"),
    TOKEN_IS_NULL("9002","token为空"),


    //系统级别的异常
    MYSQL_SAVE_ERROR("1001", "数据保存异常"),
    DATA_NOT_EXIST("1002", "数据不存在"),
    SYSTEM_ERROR("9999", "未知异常，请联系工程师")
    ;

    private String code;
    private String msg;

    ErrorCodeAndMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
